onload = () => {
    loadCSS("../css/fontello.css", "bootstrap5-icon");
    loadCSS("../css/bootstrap5.min.css", "bootstrap5");
    loadScript("../js/bootstrap5.bundle.min.js").then(() => loadScript("../js/crud.js")).then(() => {
        let chargeCodeOperator = new Crud({
            module: "chargeCode",
            listField: [{"caption": "ID", "field": "chargeCodeId"}, {
                "caption": "Code",
                "field": "code"
            }, {"caption": "Desc.", "field": "description"}],
            editFields: [
                {"name": "code", "placeHolder": "code", "required": "required"},
                {"name": "description", "placeHolder": "description"}
            ]
        });
        chargeCodeOperator.init()
    }).catch((err) => console.error(err));
}
